<?php
/**
 * Created by PhpStorm.
 * User: 23783
 * Date: 2018/3/5
 * Time: 16:31
 */


define('API_ROOT', dirname(__FILE__));

require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";

CModule::IncludeModule('iBlock');


//引入加载器
require_once "loader.php";

//引用pdf模板
require_once('Module/TCPDF/tcpdf.php');
$tcPdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false);

//路由映射
$rules=array(
    //分析报销文件
//    '^document_id\/(\d+)$'=>'Category/TravelExpense/GetWorkflowState/document_id/$1',
    '^document_id\/(\d+)$'=>'Index/Index/LoadPdfModule/document_id/$1',

    '^user$'=>'User/User/getUserList',
    '^user\/(\d+)$'=>'User/User/getUserById/id/$1',
    '^user\/(\d+)\/article$'=>'User/User/getUserArticle/uid/$1'
);
loader::run($rules);
?>


